public class Fry extends Action {	
    public Fry(Predicate p, int duration) {
        super("Fry", duration);

        addPreconditions(p);
        addToAddList(new Fried(p, duration));
        addToDeleteList(p);

        addToResources(Resource.PAN);
        addToResources(Resource.STOVE_PLATE);
    }

    public Fry() {
        super("Fry", 0);

        addToAddList(new Fried());

        addToResources(Resource.PAN);
        addToResources(Resource.STOVE_PLATE);
    }
}
